<?php
	require 'config.php';
	require 'blog-side.php';

	$title = 'html5网页-博客详细页';
	$blog = $_->articles->_select('',array('id'=>$id));
	$blog = $blog[0];
	if($blog)
	{
		$blog['content'] = str_replace('/libs/editor/attached','http://pic.dev/libs/editor/attached',$blog['content']);
	}else{
		$temp="erro.html";
	}
	$comment = $blog['id']?$_->cmt->clist($blog['id']):'';
	$smarty->_assign(array('title','blog','comment'));
	$smarty->_display($temp);

?>